package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 采购订单表入库表
 *
 * @author wxw
 * @email
 * @date 2020-03-24 17:22:46
 */

@Data
@TableName("unimall_purchase_warehouse_order")
public class PurchaseWarehouseOrderDO extends SuperDO {

    /**
     *
     */
    /**
     * 采购单id
     */
    @TableField("p_order_id")
    private Long pOrderId;
    /**
     * 库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;
    /**
     * 入库单编号
     */
    @TableField("warehouse_order_no")
    private String warehouseOrderNo;
    /**
     * 类型0待入库1已入库
     */
    @TableField("warehouse_order_state")
    private Integer warehouseOrderState;
    /**
     * 备注其他信息
     */
    @TableField("warehouse_order_info")
    private String warehouseOrderInfo;
    /**
     *
     */
    @TableField("admin_id")
    private Long adminId;
    /**
     * 商品总价
     */
    @TableField("warehouse_order_goods_amount")
    private Long warehouseOrderGoodsAmount;
    /**
     * 税价格
     */
    @TableField("warehouse_order_tax")
    private Long warehouseOrderTax;
    /**
     * 订单金额
     */
    @TableField("warehouse_order_amount")
    private Long warehouseOrderAmount;
    /**
     * 优惠金额
     */
    @TableField("warehouse_order_conpon")
    private Integer warehouseOrderConpon;
    /**
     * 支付方式
     */
    @TableField("warehouse_order_payment_code")
    private String warehouseOrderPaymentCode;

    /**
     * 供应商id
     */
    @TableField("supplier_id")
    private Long supplierId;
    /**
     * 供应商联系人
     */
    @TableField("supplier_contacts")
    private String supplierContacts;
    /**
     * 手机号码
     */
    @TableField("supplier_phone")
    private String supplierPhone;

    /**
     * 供应商名称
     */
    @TableField("supplier_name")
    private String supplierName;

    /**
     * 入库数量
     */
    @TableField("warehouse_order_goods_count")
    private Float warehouseOrderGoodsCount;
    /**
     * 入库时间
     */
    @TableField("warehouse_order_insert_time")
    private Date warehouseOrderInsertTime;
    /**
     * 操作人真实姓名
     */
    @TableField("admin_realname")
    private String adminRealname;

    /**
     * 入库确认人真实姓名
     */
    @TableField("warehouse_order_confirm_realname")
    private String warehouseOrderConfirmRealname;

    /**
     * 入库确认人ID
     */
    @TableField("warehouse_order_confirm_userId")
    private Long warehouseOrderConfirmUserId;
    /**
     * 审批意见
     */
    @TableField("warehouse_order_audit_comment")
    private String warehouseOrderAuditComment;

    /**
     * 审批时间
     */
    @TableField("warehouse_order_audit_time")
    private Date warehouseOrderAuditTime;

    /**
     * 审批人Id
     */
    @TableField("warehouse_order_audit_userId")
    private Long warehouseOrderAuditUserId;

    /**
     * 审批人真实姓名
     */
    @TableField("warehouse_order_audit_realname")
    private String warehouseOrderAuditRealname;

    @TableField(exist = false)
    private List<PurchaseWarehouseOrderGoodsDO> skus;

}
